from selenium import webdriver
from selenium.webdriver.common.by import By
import unittest,time

class A3mall(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Edge()
        self.driver.maximize_window()
        self.driver.get('http://10.59.9.12:7001/')

    def tearDown(self):
        time.sleep(2)
        self.driver.quit()

    def test_A3mall_01_login(self):
        self.driver.find_element(By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a').click()
        self.driver.find_element(By.NAME,'username').send_keys('18620064667')
        self.driver.find_element(By.NAME,'password').send_keys('123456')
        time.sleep(10)
        self.driver.find_element(By.CLASS_NAME,'finish-btn')
        time.sleep(3)

if __name__ == '__main__':
    unittest.main()